﻿@model FTBS.Models.Entities.Level
@{
    ViewBag.Title = "Tùy chỉnh";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<h2 style="font-weight: bold">Tùy chỉnh</h2>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    @Html.HiddenFor(model => model.LevelId)
    <table class="table striped bordered hovered" style="margin: 0px 0px 0px 40px">
        <tr>
            <th>Cấp khách hàng (*)
            </th>
            <td>
                <div class="input-control text">
                    @Html.EditorFor(model => model.LevelName)
                    <p style="color: red; font-size: 10pt">@Html.ValidationMessageFor(model => model.LevelName)</p>
                    @if (ViewBag.Level != null)
                    {
                        <p style="color: red; font-size: 10pt">Cấp khách hàng này đã có sẵn!</p>
                    }
                </div>
            </td>
        </tr>
        <tr>
            <th>Chỉ số (*)
            </th>
            <td>
                <div class="input-control text">
                    @Html.EditorFor(model => model.Rate)
                    <p style="color: red; font-size: 10pt">@Html.ValidationMessageFor(model => model.Rate)</p>
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input class="large info" type="submit" value="Lưu" />
            </td>
        </tr>
    </table>
}

<div>
    @Html.ActionLink("Quay Lại", "Index")
</div>
